﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EstateShowInfo.aspx.cs"
    Inherits="ZLDC.Estate.PM.EstateShowInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>举报管理</title>
    <base target="_self"></base>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../js/jquery/jquery.hiAlerts-min.js" type="text/javascript"></script>

    <script src="../js/LexunJS.js" type="text/javascript"></script>

    <link href="../css/PLG.css" rel="stylesheet" type="text/css" />

    <script src="../js/jShowDiv.js" type="text/javascript"></script>

    <link href="../js/jquery/style/jquery.hiAlerts.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            color: #FFFFFF;
        }
    </style>

    <script type="text/javascript">
        $(document).ready(function() {
            var deptid = LexunJS.GetQueryString("deptid");
            if (deptid == 0) {//举报
                document.getElementById("divname1").style.display = "none";
                document.getElementById("divname").style.display = "none";
                document.getElementById("isValid").value = "1";
            }
            document.getElementById("deptid").value = deptid;
            var hid = LexunJS.GetQueryString("hid");

            document.getElementById("housingId").value = hid;
        });

        function submitOk() {
            var deptid = $('#deptid').val();
            if ($('#reason').val() == '') {
                alert("请选择举报原因!");
                return false;
            }
            if ($('#advise').val() == '') {
                alert("请选择建议处理!");
                return false;
            }
            if ($('#deptid').val() != '0' && $('#ddlusername').val() == '') {
                alert("请选择处理人!");
                return false;
            }
            //提交信息
            document.forms[0].submit();
            window.close();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server" action="../Handler/HandlerHousing.ashx?act=p_housingInform_save"
    enctype="multipart/form-data" method="post">
    <input id="housingId" name="housingId" type="hidden" />
    <input id="isValid" name="isValid" value="0" type="hidden" />
    <input id="cboname" name="cboname" type="hidden" />
    <input id="fdeptId" name="fdeptId" runat="server" type="hidden" />
    <input id="fdept" name="fdept" runat="server" type="hidden" />
    <input id="fUserId" name="fUserId" runat="server" type="hidden" />
    <input id="fUser" name="fUser" runat="server" type="hidden" />
    <input id="deptid" name="deptid" runat="server" type="hidden" />
    <div style="display: none">
        <select id="ddldept" name="ddldept" runat="server">
        </select>
    </div>
    <div id="divLayer" style=" border: 1px solid #00FFFF; background-position: rgb(255, 255, 255);
        background: rgb(255, 255, 255); width: 98%; height: 180px;">
   
        <div id="tabcontent" style="margin-left: 20px; margin-right: 20px;">
            <table height="60" border="0" align="center" bgcolor="#CCCCCC" cellpadding="0" cellspacing="0">
                <tr>
                    <td bgcolor="#F7F7F7" align="right" style="width: 19%;">
                        举报原因：
                    </td>
                    <td style="width: 70%; height: 20px" bgcolor="#F7F7F7">
                        <select id="reason" name="reason" runat="server" style="width: 50%">
                            <option></option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#F7F7F7" style="width: 19%;">
                    </td>
                    <td style="width: 70%; height: 35px" bgcolor="#F7F7F7">
                        <textarea id="reason1" name="reason1" cols="20" rows="2"></textarea>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#F7F7F7" style="width: 19%;">
                        建议处理：
                    </td>
                    <td style="width: 70%;" bgcolor="#F7F7F7">
                        <select id="advise" runat="server" name="advise" style="width: 50%">
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#F7F7F7" style="width: 19%;">
                        <div id="divname">
                            人员：
                        </div>
                    </td>
                    <td style="width: 70%;" bgcolor="#F7F7F7">
                        <div id="divname1">
                            <select id="ddlusername" runat="server" name="ddlusername" style="width: 50%">
                            </select>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div id="tabbottom" style="text-align: right;">
            <input id="btnSave" type="button" value="确定" class="button_bak" onclick="return submitOk()"/>
            <input id="btnClose" type="button" value="关闭" class="button_bak" onclick="window.close();"/>
        </div>
    </div>
    </form>
</body>
</html>
